<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Test Page</title>
</head>
<body class="yui3-skin-sam">

<div id="log"></div>
<div id="test" style="visibility: hidden;">
    <div id="test-content"></div>
    <a href="assets/page-full.html" id="link-full" class="yui3-pjax">full page</a>
    <a href="assets/page-minimal.html" id="link-minimal" class="yui3-pjax">minimal page</a>
    <a href="assets/page-text.html" id="link-text" class="yui3-pjax">text page</a>
    <a href="assets/missing/pagedoesnotexist.html" id="unmatched-route" class="yui-pjax">missing page</a>
    <a href="#log" id="link-in-page" class="yui3-pjax">in-page</a>
    <a href="" id="link-current" class="yui3-pjax">current page</a>
    <span id="link-fake" class="yui3-pjax">fake</span>
    <a href="mailto:foo@example.com" id="link-mailto" class="yui3-pjax">mailto</a>
</div>

<script src="../../../../build/yui/yui.js"></script>
<script>
YUI({
    coverage: ['pjax'],
    filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
    modules: {
        'pjax-test': {
            fullpath: './assets/pjax-test.js',
            requires: ['pjax-plugin', 'test']
        }
    }
}).use('pjax-test', 'test-console', function (Y) {
    new Y.Test.Console().render('#log');
    Y.Test.Runner.run();
});
</script>

</body>
</html>
